<template>

  <el-container>
    <el-aside width="200px">
      <el-menu :router="true" :default-active="$route.path"
               class="el-menu-vertical-demo">
        <el-submenu v-if="$auth.contains('usr','dep','rol','func','dict')" index="/setup">
          <template slot="title">
            <i class="el-icon-menu"></i>
            <span>系统管理</span>
          </template>
            <el-menu-item v-if="$auth.contains('usr')" index="/setup/user">用户管理</el-menu-item>
            <el-menu-item v-if="$auth.contains('dep')" index="/setup/dep">部门管理</el-menu-item>
            <el-menu-item v-if="$auth.contains('rol')" index="/setup/role">角色管理</el-menu-item>
            <el-menu-item v-if="$auth.contains('func')" index="/setup/func">功能管理</el-menu-item>
            <el-menu-item v-if="$auth.contains('dict')" index="/setup/dict">数据字典</el-menu-item>
        </el-submenu>

      </el-menu>
    </el-aside>
    <el-container>
      <el-main>
        <router-view/>
      </el-main>
    </el-container>
  </el-container>
</template>


<script>

  export default {


    methods: {

      handleOpen(){
      },

      handleClose(){
      }

    }

  }

</script>

